//
// Created on 2025/3/7.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef OHENV_H
#define OHENV_H
#include "napi/native_api.h"

class OHEnv {
public:
    static OHEnv* GetInstance(){
        static OHEnv env;
        return &env;
    }
    void SetEnv(napi_env env) {
        fEnv = env;
    }
    inline napi_env GetEnv() {
        return fEnv;
    }
private:
    napi_env fEnv = nullptr;
};


#endif //OHENV_H
